import { Entity, Column, PrimaryGeneratedColumn, ManyToOne, CreateDateColumn, UpdateDateColumn } from 'typeorm';
import { AskForm } from './askform.entity';

@Entity()
export class ReplyForm {
    @PrimaryGeneratedColumn()
    id: number;

    @Column()
    responder: string;

    @Column()
    responderUserId: string;

    @Column()
    company: string;

    @Column('text')
    responseContent: string;

    @Column()
    questionCategory: string;

    @Column()
    isClosed: boolean;

    @Column('text', { nullable: true })
    remarks: string;

    @ManyToOne(() => AskForm, askForm => askForm.replies)
    askForm: AskForm;

    @CreateDateColumn()
    createdAt: Date;

    @UpdateDateColumn()
    updatedAt: Date;
} 